<!DOCTYPE HTML>
<html>
	<head>
		<script id="allmobilize" charset="utf-8" src="style/js/allmobilize.min.js"></script>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="alternate" media="handheld" />
		<!-- end 云适配 -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>找回密码-牛币网-最专业的互联网招聘平台</title>
		<meta property="qc:admins" content="23635710066417756375" />
		<meta content="牛币网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在牛币网" name="description">
		<meta content="牛币,牛币网,牛币招聘,牛币, 牛币网 ,互联网招聘,牛币互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 牛币官网, 牛币百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招"
		 name="keywords">

		<meta name="baidu-site-verification" content="QIQ6KC1oZ6" />

		<!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
		<script type="text/javascript">
			var ctx = "http://www.lagou.com";
			console.log(1);
		</script>
		<link rel="Shortcut Icon" href="http://www.lagou.com/images/favicon.ico">
		<link rel="stylesheet" type="text/css" href="style/css/style.css" />

		<script src="style/js/jquery.1.10.1.min.js" type="text/javascript"></script>
		<script src="style/js/login.js" type="text/javascript"></script>
		<script type="text/javascript" src="style/js/jquery.lib.min.js"></script>
		<script type="text/javascript" src="style/js/core.min.js"></script>
		<script type="text/javascript" src="style/js/analytics.js"></script>

		<script type="text/javascript">
			var youdao_conv_id = 271546;
		</script>
		<script type="text/javascript" src="style/js/conv.js"></script>
	</head>

	<body id="login_bg">
		<div class="login_wrapper">
			<div class="login_header">
				<a href="index.html"><img src="style/images/logo_white.png" width="285" height="62" alt="牛币招聘" /></a>
				<div id="cloud_s"><img src="style/images/cloud_s.png" width="81" height="52" alt="cloud" /></div>
				<div id="cloud_m"><img src="style/images/cloud_m.png" width="136" height="95" alt="cloud" /></div>
			</div>

			<input type="hidden" id="resubmitToken" value="" />
			<div class="find_psw">
				<img src="style/images/psw_step4.png" width="369" height="56" alt="找回密码第三步" />
				<form id="pswForm">
					<input type="password" name="newPassword" id="newPassword" tabindex="1" value="" placeholder="请输入修改后的密码" />
					<input type="password" name="comfirmPassword" id="newPassword" tabindex="1" value="" placeholder="确定密码" />
					<input type="submit" id="submitLogin" value="修改密码" />
				</form>
			</div>
		</div>

		<script type="text/javascript">
			$(document).ready(function() {
				$('#pswForm input[type="text"]').focus(function() {
					$(this).siblings('.error').hide();
				});
				//验证表单

				$("#pswForm").validate({
					rules: {
						newPassword: {
							required: true,
							rangelength: [6, 16]
						},
						comfirmPassword: {
							required: true,
							rangelength: [6, 16],
							equalTo: "#newPassword"
						}
					},
					messages: {
						newPassword: {
							required: "请输入验证码",
							rangelength: "请输入6-16位密码，字母区分大小写"
						},
						comfirmPassword: {
							required: "请输入验证码",
							rangelength: "请输入6-16位密码，字母区分大小写",
							equalTo: "两次输入的密码不一致，请重新输入"
						}
					},
					submitHandler: function(form) {
						var newPassword = $("#newPassword").val()
						$.ajax({
							url: path + "user/resetPassword",
							type: "POST",
							data: JSON.stringify({"newPassword":newPassword}),
							dataType:'json',
							crossDomain: true,
							xhrFields: {
							withCredentials: true
							},
							async: false,
							contentType: 'application/json',
							}).done(function(data) {
							if(data.success == "success"){
								
								if(confirm("重置密码成功是否前去登录？")){
									location.href="login.html"
								}						
							}else if(data.msg != "undefined"){
								alert(data.msg)
							}
						})
					}
				});
			});
		</script>
	</body>
</html>
